package com.ruoyi.supervision.service;

import com.ruoyi.supervision.domain.SupervisionLog;
import com.ruoyi.supervision.domain.vo.SupervisionLogVo;
import com.ruoyi.supervision.domain.bo.SupervisionLogBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import javax.servlet.http.HttpServletResponse;
import java.util.Collection;
import java.util.List;

/**
 * 监理日志Service接口
 *
 * @author llb
 * @date 2024-10-21
 */
public interface ISupervisionLogService {

    /**
     * 查询监理日志
     */
    SupervisionLogVo queryById(Long id);

    /**
     * 查询监理日志列表
     */
    TableDataInfo<SupervisionLogVo> queryPageList(SupervisionLogBo bo, PageQuery pageQuery);

    /**
     * 查询监理日志列表
     */
    List<SupervisionLogVo> queryList(SupervisionLogBo bo);

    /**
     * 新增监理日志
     */
    Boolean insertByBo(SupervisionLogBo bo);

    /**
     * 修改监理日志
     */
    Boolean updateByBo(SupervisionLogBo bo);

    /**
     * 校验并批量删除监理日志信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 导出监理日志详情单
     * @param response
     * @param bo
     */
    void exportLog(HttpServletResponse response, SupervisionLogBo bo, String type);
}
